package indi.jp.project.base.task;

import indi.jp.project.base.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

import java.sql.SQLException;

//@Configuration
//@EnableScheduling
public class EmployeeTask {

//    @Autowired
//    private EmployeeService employeeService;
//
//    @Scheduled(cron = "0 0/10 * * * ? ")
//    private void doExecute(){
//        System.out.println("###########");
//        try {
//            employeeService.doExecute();
//        } catch (SQLException throwables) {
//            throwables.printStackTrace();
//        }
//    }


}
